home *** CD-ROM | disk | FTP | other *** search
/ Univers Interactif 3 / INTERACTIF.BIN / pc / planeten / internet / macslip2.6up / MacSLIP Folder / Powerbook.samples < prev    next >
Text File  |  1995-01-11  |  694b  |  38 lines

  1. #
  2. #    This script contains sample script code for 
  3. #    dealing with the built in Apple modem in
  4. #    a Powerbook.
  5. #
  6.  
  7. #
  8. #   This is the initialization string to use
  9. #   with a 2400 baud powerbook modem.
  10. #   Paste into the section of your script that 
  11. #   initializes the modem.
  12. #
  13. setcount 0 0
  14. label modeminit
  15. flush
  16. ifcountgt 0 3 return 0
  17. send AT&D3B1E1H0M1N0Q0V1W1X4\r
  18. {
  19.     ifmatch OK break
  20.     iftime 3 goto modeminit
  21. }
  22.  
  23.  
  24. #
  25. #   Come here when the "Disconnect" button is 
  26. #   pressed. Force the modem to hang up the
  27. #   connection. Paste this into the section of
  28. #   your script that handles disconnecting or
  29. #   hanging up the modem.
  30. #
  31. label disconnect
  32. dtr off
  33. delay 5
  34. send ath\r
  35. dtr on
  36. return 1
  37.  
  38.